package com.exds;

public class ExtJava extends morebase{
	ExtJava(){
		System.out.println("ExtJava constructor");
	}

	public static void main(String[] args){
		ExtJava java=new ExtJava();
		morebase mb=new morebase();
		base b=new base();
		System.out.println("---------");
		mb.main(args);
	
	}
}

class base{
	base(){
		System.out.println("base constructor");
	}
	public static void main(String[] args){
		base b=new base();		
	}
}

class morebase extends base{
	morebase(){
		System.out.println("morebase constructor");
	}
	
	public static void main(String[] args){
		morebase mb=new morebase();		
	}
}